package com.example.interview.tencent;

import java.util.Scanner;

/**
 * 解析url中的参数，形成json格式
 */
public class timu1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String url = in.nextLine();
        String[] split = url.split("\\?");
        String paramsStr = split[1];
        if (paramsStr.contains("#hash")) {
            paramsStr = paramsStr.substring(0, paramsStr.length() - 5);
        }
        String[] params = paramsStr.split("&");
        System.out.print("{");
        for (int i = 0; i < params.length; i++) {
            String param = params[i];
            String[] strs = param.split("=");
            System.out.print(strs[0] + ":" + "'" + strs[1] + "'");
            if(i != params.length - 1){
                System.out.print(",");
            }
        }
        System.out.println("}");
    }
}
